import request from '@/utils/request'
// 项目初始接口
export function http_createObject_base(params) {
  return request({
    url: '/project/base/data',
    method: 'get'
  })
}
// 项目节点
export function http_createObject_nodeType(params) {
  return request({
    url: '/project/node/list',
    method: 'get',
    params: {...params}
  })
}
// 项目编码
export function http_createObject_code(params) {
  return request({
    url: '/project/getProjectCode',
    method: 'get',
    params: {...params}
  })
}

// 归属分社
export function http_createObject_branchList(params) {
  return request({
    url: '/project/branch/list',
    method: 'get',
    params: {...params}
  })
}

// 分社对接人
export function http_createObject_branchContact(params) {
  return request({
    url: '/project/branch/contact',
    method: 'post',
    data: params
  })
}

// 项目资料类型
export function http_createObject_dataList(params) {
  return request({
    url: '/project/data/list',
    method: 'get',
    params: {...params}
  })
}
// 归属部门
export function http_createObject_deptList(params) {
  return request({
    url: '/dropdownBox/dept/list',
    method: 'get',
    params: {...params}
  })
}
// 项目负责人
export function http_createObject_userList(params) {
  return request({
    url: '/user/list',
    method: 'get',
    params: {...params}
  })
}

// 项目负责人
export function http_users() {
  return request({
    url: '/user/users',
    method: 'get',
  })
}
// 项目保存
export function http_createObject_save(data) {
  return request({
    url: '/project/save',
    method: 'post',
    data
  })
}

// 提交到钉钉
export function http_createObject_dingding(data,obj) {
  return request({
    url: '/project/save/dingding',
    method: 'post',
    data: {proCode: data,...obj}
  })
}
// 查询项目基本信息
export function http_createObject_editProjectInit(params) {
  return request({
    url: '/project/editProjectInit',
    method: 'get',
    params: {...params}
  })
}
// 项目编辑更新
export function http_createObject_update(data) {
  return request({
    url: '/project/update',
    method: 'post',
    data
  })
}
// 人天分配
export function http_createObject_saveAssign(data) {
  return request({
    url: '/assignment/saveAssign',
    method: 'post',
    data
  })
}

// 项目详情
export function http_createObject_getProjectInfo(params) {
  return request({
    url: '/project/getProjectInfo',
    method: 'get',
    params: {...params}
  })
}

// 人员角色列表
export function http_createObject_getRole(params) {
  return request({
    url: '/project/proRole/list',
    method: 'get',
    params: {...params}
  })
}

// export function http_createObject_nodeType(data) {
//   return request({
//     url: '/project/node/list',
//     method: 'post',
//     data
//   })
// }

export function http_project_updateContractCode(data) {
  return request({
    url: '/project/updateContractCode',
    method: 'post',
    data
  })
}



